﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;

namespace CPPEI.Coolzon.Designer.Views
{
    public static class OpenSolutionCommand
    {
        public static void Executed(object sender, ExecutedRoutedEventArgs e)
        {
            if (SolutionTreeViewNodeHelper.IsCancelSaveOrUnSaveCurrentSceneOperation())
            {
                return;
            }
            SolutionSelectView ssv = new SolutionSelectView();
            ssv.ShowDialog();
        }
        public static void CanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            e.CanExecute = true;
        }
    }
}
